package com.ruoyi.web.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.mapper.TbShopLabelMapper;
import com.ruoyi.web.domain.TbShopLabel;
import com.ruoyi.web.service.ITbShopLabelService;

/**
 * 商品标签Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-17
 */
@Service
public class TbShopLabelServiceImpl implements ITbShopLabelService 
{
    @Autowired
    private TbShopLabelMapper tbShopLabelMapper;

    /**
     * 查询商品标签
     * 
     * @param id 商品标签主键
     * @return 商品标签
     */
    @Override
    public TbShopLabel selectTbShopLabelById(Long id)
    {
        return tbShopLabelMapper.selectTbShopLabelById(id);
    }

    /**
     * 查询商品标签列表
     * 
     * @param tbShopLabel 商品标签
     * @return 商品标签
     */
    @Override
    public List<TbShopLabel> selectTbShopLabelList(TbShopLabel tbShopLabel)
    {
        return tbShopLabelMapper.selectTbShopLabelList(tbShopLabel);
    }

    /**
     * 新增商品标签
     * 
     * @param tbShopLabel 商品标签
     * @return 结果
     */
    @Override
    public int insertTbShopLabel(TbShopLabel tbShopLabel)
    {
        return tbShopLabelMapper.insertTbShopLabel(tbShopLabel);
    }

    /**
     * 修改商品标签
     * 
     * @param tbShopLabel 商品标签
     * @return 结果
     */
    @Override
    public int updateTbShopLabel(TbShopLabel tbShopLabel)
    {
        return tbShopLabelMapper.updateTbShopLabel(tbShopLabel);
    }

    /**
     * 批量删除商品标签
     * 
     * @param ids 需要删除的商品标签主键
     * @return 结果
     */
    @Override
    public int deleteTbShopLabelByIds(Long[] ids)
    {
        return tbShopLabelMapper.deleteTbShopLabelByIds(ids);
    }

    /**
     * 删除商品标签信息
     * 
     * @param id 商品标签主键
     * @return 结果
     */
    @Override
    public int deleteTbShopLabelById(Long id)
    {
        return tbShopLabelMapper.deleteTbShopLabelById(id);
    }

    @Override
    public List<TbShopLabel> selectAll() {
        return tbShopLabelMapper.selectAll();
    }
}
